/*------通用样式--------*/
html,
body,
#app {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: @text-color;
  font-family: @font-family;
  background-color: @body-background;
}

/*循环生成0-100每次递增2*/
.Loop(@i) when(@i <=100) {
  .m-@{i} {
    margin: @i*1px  !important;
  }

  .p-@{i} {
    padding: @i*1px  !important;
  }

  .mt-@{i} {
    margin-top: @i*1px  !important;
  }

  .mb-@{i} {
    margin-bottom: @i*1px  !important;
  }

  .ml-@{i} {
    margin-left: @i*1px  !important;
  }

  .mr-@{i} {
    margin-right: @i*1px  !important;
  }

  .pt-@{i} {
    padding-top: @i*1px  !important;
  }

  .pb-@{i} {
    padding-bottom: @i*1px  !important;
  }

  .pl-@{i} {
    padding-left: @i*1px  !important;
  }

  .pr-@{i} {
    padding-right: @i*1px  !important;
  }

  .Loop(@i+2);
}
.Loop(0);
/*END*/

//小手
.cursor-pointer {
  cursor:pointer;
}

//滚动条
.scroll-bar {
  .scrollBar()
}

//文字居中
.text-center {
  text-align: center;
}

// display
.flex {
  display: flex;
}
//居中
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.inline-block {
  display: inline-block;
}

/*浮动和清除*/
.fr {
  float: right;
}

.fl {
  float: left;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}
/*END*/